import request from '@/utils/request'

export function list () {
  return request({
    url: '/clientInfo/list',
    method: 'get'
  })
}
export function getOne (id) {
  return request({
    url: '/clientInfo/' + id,
    method: 'get'
  })
}
export function pageClient (params) {
  return request({
    url: '/clientInfo/clientPage',
    params: params,
    method: 'get'
  })
}
export function addClient (data) {
  return request({
    url: '/clientInfo',
    method: 'post',
    data: data
  })
}
export function editClient (data) {
  return request({
    url: '/clientInfo',
    method: 'put',
    data: data
  })
}
export function deleteClient (id) {
  return request({
    url: '/clientInfo' + id,
    method: 'delete'
  })
}
